/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package toplevelwindows;

//file: TopLevelWindows.java
import javax.swing.*;

public class TopLevelWindows
{

    public static void main(String[] args)
    {
        JFrame f = new JFrame("My Frame");  //A window with border and banner, etc.
        f.setSize(300, 300);
        f.setLocation(100, 100);

        JWindow w = new JWindow();  //Naked window (no decoration at all)
        w.setSize(300, 300);
        w.setLocation(500, 100);

        f.setVisible(true);
        w.setVisible(true);
    }
}
